import request from '@/utils/request'

export function loginByUsername(params) {
  return request({
    url: 'login',
    method: 'post',
    type: 'login',
    data: params
  })
}

export function logout() {
  return request({
    url: 'rest/auth/logout',
    method: 'post'
  })
}

export function getUserInfo() {
  return request({
    url: 'rest/auth/getUserInfo',
    method: 'post'
  })
}

